package com.gmu.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 木鱼~
 * @version 1.0
 */
@Api(value = "测试token", tags= "测试tokenAPI")
@RestController
public class HelloController {

    /**
     * 测试token有效性
     * @return hello
     */
    @PreAuthorize("hasAuthority('sys:activitymanagegover1')")
    @ApiOperation(value = "测试token有效性")
    @GetMapping("/hello")
    public String hello(){
        return "hello成功!";
    }

}
